package com.example.jazztalk.common;

import example.jazztalk.common.model.Message;
import com.ibm.team.repository.common.TeamRepositoryException;
import com.ibm.team.repository.common.transport.IParameterWrapper;
import com.ibm.team.repository.common.transport.ITeamModelledRestService;

public interface IJazzTalkService extends ITeamModelledRestService {

   Message[] getAllMessages() throws TeamRepositoryException;

   Message postNewMessage(NewMessageParameters params)
         throws TeamRepositoryException;

   public static final class NewMessageParameters
         implements IParameterWrapper {
      public String text;
   }
}
